Removed deprecated BagOStuff::replace() method
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 12 Sep 2014 09:03:32 +0000 (02:03 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 12 Sep 2014 09:03:32 +0000 (02:03 -0700)
Change-Id: Ife2f8e0f10ad7be76b79d5aee435491ea78d4655

includes/objectcache/BagOStuff.php

index 6f8f9af..1978c3e 100644 (file)
@@ -277,21 +277,6 @@ abstract class BagOStuff {
                return false; // key already set
        }
 
-       /**
-        * @param string $key
-        * @param mixed $value
-        * @param int $exptime
-        * @return bool Success
-        * @deprecated since 1.23
-        */
-       public function replace( $key, $value, $exptime = 0 ) {
-               wfDeprecated( __METHOD__, '1.23' );
-               if ( $this->get( $key ) !== false ) {
-                       return $this->set( $key, $value, $exptime );
-               }
-               return false; // key not already set
-       }
-
        /**
         * Increase stored value of $key by $value while preserving its TTL
         * @param string $key Key to increase